SdJwtSerializationOps

Parameters

JWT

the type representing the JWT part of the SD-JWT

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun SdJwt<JWT>.asJwsJsonObject(option: JwsSerializationOption = JwsSerializationOption.Flattened): JsonObject

Creates a representation of an SdJwt as a JWS JSON according to RFC7515. In addition to the General & Flattened representations defined in the RFC7515, the result JSON contains an unprotected header which includes an array with the disclosures

Link copied to clipboard
abstract suspend fun SdJwt<JWT>.asJwsJsonObjectWithKeyBinding(option: JwsSerializationOption = JwsSerializationOption.Flattened, buildKbJwt: BuildKbJwt): Result<JsonObject>

Creates a representation of an SdJwt as a JWS JSON according to RFC7515. In addition to the General & Flattened representations defined in the RFC7515, the result JSON contains an unprotected header which includes an array with the disclosures of the SdJwt and the key binding JWT

abstract fun SdJwt<JWT>.asJwsJsonObjectWithKeyBinding(option: JwsSerializationOption = JwsSerializationOption.Flattened, kbJwt: Jwt): JsonObject
Link copied to clipboard
abstract fun SdJwt<JWT>.serialize(): String

Serializes a SdJwt without a key binding JWT.

Link copied to clipboard
abstract suspend fun SdJwt<JWT>.serializeWithKeyBinding(buildKbJwt: BuildKbJwt): Result<String>

Serializes a SdJwt with a Key Binding JWT.